const ManagePricing = () => import('@/modules/purchaseSearchSource/views/ManagePricing.vue')
const PricingDetail = () => import('@/modules/purchaseSearchSource/components/ManagePricingDetail.vue')
const PurchaseApply = () => import('@/modules/purchaseSearchSource/views/purchaseApply.vue')
const PurchaseApplyDetail = () => import('@/modules/purchaseSearchSource/components/purchaseApplyDetail.vue')
const PurchanseDemandPool = () => import('@/modules/purchaseSearchSource/views/purchanseDemandPool.vue')
const PurchanseDemandDetail = () => import('@/modules/purchaseSearchSource/components/purchanseDemandDetail.vue')
const Enquiry = () => import('@/modules/purchaseSearchSource/views/enquiry.vue')
const EnquiryDetail = () => import('@/modules/purchaseSearchSource/components/enquiryDetail.vue')
const QuotationDetail = () => import('@/modules/purchaseSearchSource/components/quotationDetail.vue')
const parentRouter = [
  {
    label: '采购寻源管理',
    path: ''
  }
]

const routes = [
  {
    path: '/purchaseSearchSource/managePricing',
    name: 'ManagePricing',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '定价管理',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: ManagePricing
  },
  {
    path: '/purchaseSearchSource/managePricing/pricingDetail',
    name: 'PricingDetail',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '定价单详情',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: PricingDetail
  },
  {
    path: '/purchaseSearchSource/purchaseApply',
    name: 'PurchaseApply',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '采购申请',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: PurchaseApply
  },
  {
    path: '/purchaseSearchSource/purchaseApply/purchaseApplyDetail',
    name: 'PurchaseApplyDetail',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '采购申请详情',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: PurchaseApplyDetail
  },
  {
    path: '/purchaseSearchSource/purchanseDemandPool',
    name: 'PurchanseDemandPool',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '采购需求池',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: PurchanseDemandPool
  },
  {
    path: '/purchaseSearchSource/purchaseApply/purchanseDemandDetail',
    name: 'PurchanseDemandDetail',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '采购需求详情',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: PurchanseDemandDetail
  },
  {
    path: '/purchaseSearchSource/enquiry',
    name: 'Enquiry',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '询价管理',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: Enquiry
  },
  {
    path: '/purchaseSearchSource/enquiry/enquiryDetail',
    name: 'EnquiryDetail',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '询价单详情',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: EnquiryDetail
  },
  {
    path: '/purchaseSearchSource/enquiry/quotationDetail',
    name: 'QuotationDetail',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '报价详情',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: QuotationDetail
  }
]
export default routes
